/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow strict-local
 */
import React from 'react';
import {
  SafeAreaView,
  StatusBar,
  DeviceEventEmitter,
  Text,
  View,
} from 'react-native';
import MarqueeView from './MarqueeViewNativeComponent';
import CustomBtn from './CustomBtnNativeComponent';

const App = () => {
  DeviceEventEmitter.addListener('clickMarqueeEvent', e => {
    console.log('e: ', e);
  });

  return (
    <SafeAreaView>
      <MarqueeView
        style={{
          height: 180,
          width: '100%',
          backgroundColor: 'hsl(210, 80%, 50%)',
        }}
        onChange={e => {
          console.log('😊：qq------------e: MarqueeView');
        }}
      />
      <View>
        <Text>-------------------</Text>
      </View>
      <CustomBtn
        style={{
          height: 180,
          width: '100%',
          backgroundColor: 'hsl(210, 80%, 50%)',
        }}
        onChange={e => {
          console.log('😊：qq------------e: btn');
        }}
      />
    </SafeAreaView>
  );
};
export default App;
